% V20210224 - 5.1 GW_ADD_BAR_TITLE$ INCLUDE "GW.bas" % Make a page. MainPage = GW_NEW_PAGE() % Prepare title string. Center$ = GW_ADD_BAR_TITLE$("My Program") % Add the title bar to the page. GW_ADD_TITLEBAR(MainPage, Center$) % Render the page and wait for user action. GW_RENDER(MainPage) DO % Wait for user action. r$ = GW_WAIT_ACTION$() % Place here any necessary code to process user actions. % Example feedback. POPUP r$ % End when BACK key is pressed. UNTIL r$ = "BACK" END "End of GW_ADD_BAR_TITLE$ example."